---t_hero.csv
---@class T_heroBean
local T_heroBean = ClientFight.CreateClass("T_heroBean")
function T_heroBean:ctor(cfg)
    --角色ID
    --@TplAttr(name="f_HeroID")
    self.f_HeroID = 0

    --角色名称
    --@TplAttr(name="f_HeroName")
    self.f_HeroName = ""

    --角色称号
    --@TplAttr(name="f_HeroSubName")
    self.f_HeroSubName = ""

    --类型
    --@TplAttr(name="f_Type")
    self.f_Type = 0

    --角色定位、
    --@TplAttr(name="f_HeroPos")
    self.f_HeroPos = ""

    --职业ID
    --@TplAttr(name="f_HeroType")
    self.f_HeroType = 0

    --角色身位大小
    --@TplAttr(name="f_HeroSize")
    ---@type number[]
    self.f_HeroSize = nil

    --初始星级
    --@TplAttr(name="f_HeroInitialStar")
    self.f_HeroInitialStar = 0

    --初始属性
    --@TplAttr(name="f_CharacterValue")
    ---@type number[][]
    self.f_CharacterValue = nil

    --移动速度
    --@TplAttr(name="f_HeroMoveSpeed")
    self.f_HeroMoveSpeed = 0

    --攻击速度
    --@TplAttr(name="f_HeroAtkSpeed")
    self.f_HeroAtkSpeed = 0

    --警戒范围1
    --@TplAttr(name="f_WarningRange1")
    ---@type number[]
    self.f_WarningRange1 = nil

    --警戒范围2
    --@TplAttr(name="f_WarningRange2")
    ---@type number[]
    self.f_WarningRange2 = nil

    --普攻id
    --@TplAttr(name="f_HeroAtk")
    self.f_HeroAtk = 0

    --技能1
    --@TplAttr(name="f_HeroSkill1")
    self.f_HeroSkill1 = 0

    --技能2
    --@TplAttr(name="f_HeroSkill2")
    self.f_HeroSkill2 = 0

    --技能3
    --@TplAttr(name="f_HeroSkill3")
    self.f_HeroSkill3 = 0

    --技能4
    --@TplAttr(name="f_HeroSkill4")
    self.f_HeroSkill4 = 0

    --重复获得时增加计数
    --@TplAttr(name="f_RepeatCount")
    self.f_RepeatCount = 0

    --自动转换资源
    --@TplAttr(name="f_AutoTrans")
    ---@type number[][]
    self.f_AutoTrans = nil

    --模型
    --@TplAttr(name="f_HeroModel")
    self.f_HeroModel = ""

    --立绘
    --@TplAttr(name="f_HeroDrawing")
    self.f_HeroDrawing = ""

    --头像icon
    --@TplAttr(name="f_HeroIcon")
    self.f_HeroIcon = ""

    --编队icon
    --@TplAttr(name="f_HeroBIcon")
    self.f_HeroBIcon = ""

    --小人图片
    --@TplAttr(name="f_HeroChibi")
    self.f_HeroChibi = ""

    --角色剪影
    --@TplAttr(name="f_HeroOutline")
    self.f_HeroOutline = ""

    --大技能半身像
    --@TplAttr(name="f_HeroUltimateSkill")
    self.f_HeroUltimateSkill = ""

    --小技能头像
    --@TplAttr(name="f_HeroCommonSkill")
    self.f_HeroCommonSkill = ""

    --声优名称
    --@TplAttr(name="f_HeroCV")
    self.f_HeroCV = ""

    --开局语音
    --@TplAttr(name="f_OpenningAudio")
    self.f_OpenningAudio = ""

    --胜利语音
    --@TplAttr(name="f_VictoryAudio")
    self.f_VictoryAudio = ""

    --失败语音
    --@TplAttr(name="f_FailureAudio")
    self.f_FailureAudio = ""

    --点击语音
    --@TplAttr(name="f_ClickAudio")
    self.f_ClickAudio = ""

    --大招CUTIN
    --@TplAttr(name="f_CutinA")
    self.f_CutinA = ""
end
function T_heroBean:loadCfg(cfg)
    self.f_HeroID = cfg.f_HeroID
    self.f_HeroName = cfg.f_HeroName
    self.f_HeroSubName = cfg.f_HeroSubName
    self.f_Type = cfg.f_Type
    self.f_HeroPos = cfg.f_HeroPos
    self.f_HeroType = cfg.f_HeroType
    self.f_HeroSize = decodeJsonStrToTabel(cfg.f_HeroSize)
    self.f_HeroInitialStar = cfg.f_HeroInitialStar
    self.f_CharacterValue = decodeJsonStrToTabel(cfg.f_CharacterValue)
    self.f_HeroMoveSpeed = cfg.f_HeroMoveSpeed
    self.f_HeroAtkSpeed = cfg.f_HeroAtkSpeed
    self.f_WarningRange1 = decodeJsonStrToTabel(cfg.f_WarningRange1)
    self.f_WarningRange2 = decodeJsonStrToTabel(cfg.f_WarningRange2)
    self.f_HeroAtk = cfg.f_HeroAtk
    self.f_HeroSkill1 = cfg.f_HeroSkill1
    self.f_HeroSkill2 = cfg.f_HeroSkill2
    self.f_HeroSkill3 = cfg.f_HeroSkill3
    self.f_HeroSkill4 = cfg.f_HeroSkill4
    self.f_RepeatCount = cfg.f_RepeatCount
    self.f_AutoTrans = decodeJsonStrToTabel(cfg.f_AutoTrans)
    self.f_HeroModel = cfg.f_HeroModel
    self.f_HeroDrawing = cfg.f_HeroDrawing
    self.f_HeroIcon = cfg.f_HeroIcon
    self.f_HeroBIcon = cfg.f_HeroBIcon
    self.f_HeroChibi = cfg.f_HeroChibi
    self.f_HeroOutline = cfg.f_HeroOutline
    self.f_HeroUltimateSkill = cfg.f_HeroUltimateSkill
    self.f_HeroCommonSkill = cfg.f_HeroCommonSkill
    self.f_HeroCV = cfg.f_HeroCV
    self.f_OpenningAudio = cfg.f_OpenningAudio
    self.f_VictoryAudio = cfg.f_VictoryAudio
    self.f_FailureAudio = cfg.f_FailureAudio
    self.f_ClickAudio = cfg.f_ClickAudio
    self.f_CutinA = cfg.f_CutinA
end